package com.lyf.service.impl;

import com.lyf.dao.JobDao;
import com.lyf.dao.impl.JobDaoImpl;
import com.lyf.pojo.Job;
import com.lyf.service.JobService;
import com.lyf.utils.PageModel;

import java.util.List;

public class JobServiceImpl implements JobService {
    JobDao jobDao = new JobDaoImpl();
    @Override
    public void add(Job job) {
        jobDao.add(job);
    }

    @Override
    public void delete(Integer id) {
        jobDao.delete(id);
    }

    @Override
    public void update(Job job) {
        jobDao.update(job);
    }

    @Override
    public List<Job> selectAll() {
        return jobDao.selectAll();
    }

    @Override
    public Job selectById(Integer id) {
        return jobDao.selectById(id);
    }

    @Override
    public List<Job> queryJob(Job job, PageModel model) {
        return jobDao.queryJob(job,model);
    }

    @Override
    public int getTotalJobCount(Job job) {
        return jobDao.getTotalJobCount(job);
    }
}
